<?php
	function authorize($userType)
	{
		session_start();
		if ((!$_SESSION['authorized']) || ($_SESSION['userType'] != $userType))
		{
			header('Location: ../../Logout.php');
		}
	}
 ?>